

import React, { useState,useEffect } from 'react';

import { Button, Modal } from 'antd';
function ItDetail(props) {

    const [isModalOpen, setIsModalOpen] = useState(false);

  useEffect(()=>{
 setIsModalOpen(true);
  },[])
  const handleOk = () => {
    setIsModalOpen(false);
    props.setShowItDetail(false);
  };
  const handleCancel = () => {
    setIsModalOpen(false);
    props.setShowItDetail(false);
  };
    return (
        <>

       
         {/* <Button type="primary" onClick={showModal}>
        Open Modal
      </Button> */}
      <Modal
        title="详情"
        closable={{ 'aria-label': 'Custom Close Button' }}
        open={isModalOpen}
        onOk={handleOk}
        onCancel={handleCancel}
        footer={null}
      >
         <div>IT支持详情</div>
      </Modal>
        </>
    )
}
export default ItDetail